package com.young.shop.pojo.vo;

import java.util.Objects;

/**
 * @author 曾家乐
 * @version 1.0
 * @date 2021-01-08 20:49
 * 返回前端的用户对象
 */
public class UserVO {
    private Long id;
    private String userName;
    private String trueName;
    private String nickName;
    private String email;
    private String phone;
    private String img;
    private String birthday;
    private String sex;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserVO userVO = (UserVO) o;
        return Objects.equals(userName , userVO.userName) &&
                Objects.equals(trueName , userVO.trueName) &&
                Objects.equals(nickName , userVO.nickName) &&
                Objects.equals(email , userVO.email) &&
                Objects.equals(phone , userVO.phone) &&
                Objects.equals(img , userVO.img);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userName , trueName , nickName , email , phone , img);
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
